package com.mall.book.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.book.entity.po.SubOrderInfo;
import com.mall.book.mappers.SubOrderInfoMapper;
import com.mall.book.service.SubOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * Created by Dizziness on 2022/4/3 20:07
 */
@Service
public class SubOrderInfoServiceImpl implements SubOrderInfoService {
    @Autowired
    SubOrderInfoMapper subOrderInfoMapper;
    @Override
    public boolean saveBatch(Collection<SubOrderInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<SubOrderInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<SubOrderInfo> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(SubOrderInfo entity) {
        return false;
    }

    @Override
    public SubOrderInfo getOne(Wrapper<SubOrderInfo> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<SubOrderInfo> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<SubOrderInfo> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<SubOrderInfo> getBaseMapper() {
        return subOrderInfoMapper;
    }

    @Override
    public Class<SubOrderInfo> getEntityClass() {
        return SubOrderInfo.class;
    }

    public List<SubOrderInfo> getByMap(Map<String, Object> map) {
        return subOrderInfoMapper.selectByMap(map);
    }

    @Override
    public Collection<SubOrderInfo> getByFatherIdEvenDeleted(String father_id) {
        return subOrderInfoMapper.selectByFatherIdEvenDeleted(father_id);
    }
}
